/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Name:	Building.h
//
// Author:	Onyebuchi Ekenta
//
// Purpose: It's the building class, dawg.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////


#ifndef BUILDING_H
#define BUILDING_H

#include "BaseGameEntity.h"
#include "Vector2D.h"

class Building : public BaseGameEntity
{

private:
	int m_iMaxHealth; // The maximum health the building can have
	int m_iCurrHealth; // The buildings current health. 
	
protected:
	enum BuildingState
	{
		Unbuilt,
		Damaged,
		Built
	};

	BuildingState m_iState;

public:
	Building(string name, Vector2D pos, int type);

	// Increases the current health by 50;
	void Repair();

	void Render();
	void DrawHealthBar();

	void Update(double time_elapsed);

	int MaxHealth() {return m_iMaxHealth;}
	int CurrHealth() {return m_iCurrHealth;}

};
#endif